<template>
  <view class="container">
    <view>
      <u--form labelPosition="left" :model="model1" ref="form1">
        <u--textarea v-model="model1.text" disabledColor="#fff"></u--textarea>
      </u--form>
      <u-button type="primary" text="确定" @click="submit" class="but"></u-button>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      showSex: false,

      model1: {
        text: "123",
        userInfo: {
          name: "王富贵",
          sex: "",
        },
      },
    };
  },
  methods: {
    submit() {
      uni.showToast({
        icon: "none",
        title: "已通知申请人重新申请作业票",
        duration: 1000,
      });
      setTimeout(() => {
        uni.navigateBack({
          delta: 2,
        });
      }, 2000);
    },
  },
};
</script>

<style lang="scss">
.container {
  padding: 0 24rpx;
  background-color: #f6f6f6;

  .title {
    font-size: 28rpx;
    font-weight: 500;
    color: #999999;
    line-height: 44rpx;
    padding: 20rpx 48rpx;
  }

  .box {
    padding: 0rpx 48rpx;
    background-color: #fff;
    border-radius: 20rpx;
  }
}

.but {
  margin: 30rpx 0;
}
</style>
